package com.ruoyi.generator.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 代码模版对象 gen_template
 * 
 * @author aibozeng
 * @date 2023-04-15
 */
public class GenTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模版主键 */
    private Long templateId;

    /** 模版名称 */
    @Excel(name = "模版名称")
    private String templateName;

    /** 模版描述 */
    @Excel(name = "模版描述")
    private String templateDesc;

    /** 模版根目录 */
    @Excel(name = "模版根目录")
    private String templateRoot;

    /** 模版功能类型 */
    @Excel(name = "模版功能类型")
    private String templateFuncType;

    /** 模版引擎服务 */
    @Excel(name = "模版引擎服务")
    private String engineService;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String validYn;

    /** 是否公开 */
    @Excel(name = "是否公开")
    private String openYn;

    /** 代码模版文件信息 */
    private List<GenTemplateFile> genTemplateFileList;

    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setTemplateDesc(String templateDesc) 
    {
        this.templateDesc = templateDesc;
    }

    public String getTemplateDesc() 
    {
        return templateDesc;
    }
    public void setTemplateRoot(String templateRoot) 
    {
        this.templateRoot = templateRoot;
    }

    public String getTemplateRoot() 
    {
        return templateRoot;
    }
    public void setTemplateFuncType(String templateFuncType) 
    {
        this.templateFuncType = templateFuncType;
    }

    public String getTemplateFuncType() 
    {
        return templateFuncType;
    }
    public void setEngineService(String engineService) 
    {
        this.engineService = engineService;
    }

    public String getEngineService() 
    {
        return engineService;
    }
    public void setValidYn(String validYn) 
    {
        this.validYn = validYn;
    }

    public String getValidYn() 
    {
        return validYn;
    }
    public void setOpenYn(String openYn) 
    {
        this.openYn = openYn;
    }

    public String getOpenYn() 
    {
        return openYn;
    }

    public List<GenTemplateFile> getGenTemplateFileList()
    {
        return genTemplateFileList;
    }

    public void setGenTemplateFileList(List<GenTemplateFile> genTemplateFileList)
    {
        this.genTemplateFileList = genTemplateFileList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("templateId", getTemplateId())
            .append("templateName", getTemplateName())
            .append("templateDesc", getTemplateDesc())
            .append("templateRoot", getTemplateRoot())
            .append("templateFuncType", getTemplateFuncType())
            .append("engineService", getEngineService())
            .append("validYn", getValidYn())
            .append("openYn", getOpenYn())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("genTemplateFileList", getGenTemplateFileList())
            .toString();
    }
}
